<a-form
  ref="searchFormRef"
  name="advanced_search"
  class="ant-advanced-search-form"
  :model="formData"
>
  <a-row :gutter="24">
    <%_ for(var i = 0; i < formConfig.fields.length; i++){ _%>
      <%_ if(formConfig.fields[i].type === 'text'){ _%>
        <a-col :span="6">
          <a-form-item name="<%= formConfig.fields[i].name %>" label="<%= formConfig.fields[i].label %>">
            <a-input v-model:value="formData.<%= formConfig.fields[i].name %>" placeholder="<%= formConfig.fields[i].placeholder %>" />
          </a-form-item>
        </a-col>
      <%_ } else if(formConfig.fields[i].type === 'select'){ _%>
        <a-col :span="6">
          <a-form-item name="<%= formConfig.fields[i].name %>" label="<%= formConfig.fields[i].label %>">
            <DictSelector v-model="formData.<%= formConfig.fields[i].name %>" dict="dataType" />
          </a-form-item>
        </a-col>
      <%_ } else if(formConfig.fields[i].type === 'radio'){ _%>
        <a-col :span="6">
          <a-form-item name="<%= formConfig.fields[i].name %>" label="<%= formConfig.fields[i].label %>">
            <a-radio-group v-model:value="formData.<%= formConfig.fields[i].name %>">
              <%_ for(var j = 0; j < formConfig.fields[i].options.length; j++){ _%>
                <a-radio value="<%= formConfig.fields[i].options[j].value %>"><%= formConfig.fields[i].options[j].label %></a-radio>
              <%_ } _%>
            </a-radio-group>
          </a-form-item>
        </a-col>
      <%_ } _%>
    <%_ } _%>
  </a-row>
</a-form>
